package com.example.demo.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.entry.Cars;
import com.example.demo.service.CarsService;
import com.example.demo.mapper.CarsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 16040
* @description 针对表【cars】的数据库操作Service实现
* @createDate 2022-05-16 11:20:13
*/
@Service
public class CarsServiceImpl extends ServiceImpl<CarsMapper, Cars>
implements CarsService{

    @Autowired
    CarsMapper carsMapper;

    @Override
    public List<Cars> getCar(String name) {
        return carsMapper.getCar(name);
    }
}
